import type { addRodParams, areaList, RodData, rodParams, RodParams, warningData } from "@/types/rod"
import { request } from "@/utils/reuqest"

// 查看一体杆列表
export const RodList=(data:RodParams)=>{
    return request<RodData>('/pole/info/list','get',data)
}
// 批量删除
export const DelRod=(ids:number[])=>{
    return request(`/pole/info/${ids}`,'delete')
}
// 添加一体杆
export const AddRod=(data:addRodParams)=>{
    return request('/pole/info','post',data)
}
// 获取关联区域下拉列表
export const getAreaList=()=>{
    return request<areaList[]>('/parking/area/dropList','get')
}
//   警告列表
export const getRodWarnAPI = (data:rodParams)=>{
    return request<warningData>('/pole/warning/list','get',data);
  }
